<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<link rel="stylesheet"		type="text/css"		href="../JO_04_2_CSS.CSS"					/>
	<link rel="stylesheet"		type="text/css"		href="../JO_04_CSS.css"					/>
	<script>
	  $(document).ready(function() {
                    $(".datepicker").datepicker({dateFormat: 'yy-mm-dd' 
                        //changeYear:true

                    });

                    $(".datepicker").mask("99/99/9999", { placeholder: "_" });

                });
	</script>
	<title>Untitled Document</title>
	</head>
	<?php 
$path="C:/xampp/htdocs/00_JO/JOi/";
include ($path.'controller/sO_commentController.php'); 
$key=$_GET['SO_chude'];

	

?>
	<body
style="background:none">
<script>
function FcheckFormTD(f){
if(!FcheckFilled('type ',f.type.value)){ f.type.focus();return false; }
if(!FcheckFilled('subject ',f.subject.value)){ f.subject.focus();return false; }
if(!FcheckFilled('start_date ',f.start_date.value)){ f.start_date.focus();return false; }
if(!FcheckFilled('expired_date ',f.expired_date.value)){ f.expired_date.focus();return false; }
if(!FcheckFilled('note ',f.note.value)){ f.note.focus();return false; }
if(!FcheckFilled('amount ',f.amount.value)){ f.amount.focus();return false; }
if(!FcheckNumber('amount',f.amount.value)){ f.amount.focus();return false; }
//if(!FcheckBoxes('Lĩnh vực',f.lbxlinhvuc,1,0)){f.lbxlinhvuc[0].focus();return false;}
//if(!FcheckFilled('Địa điểm làm việc',f.txtdiadiemlamviec.value)){ f.txtdiadiemlamviec.focus();return false; }
//if(!FcheckFilled('Mô tả sơ lược',f.txtmota.value)){ f.txtmota.focus();return false; }
//if(!FcheckFilled('kỹ năng công việc',f.txtkynang.value)){ f.txtkynang.focus();return false; }
//if(!FcheckFilled('mức lương',f.txtmucluong.value)){ f.txtmucluong.focus();return false; }
//if(!FcheckFilled('chế độ',f.txtchedo.value)){ f.txtchedo.focus();return false; }
//if(!FcheckFilled('yêu cầu hồ sơ',f.txthoso.value)){ f.txthoso.focus();return false; }
//if(!FcheckFilled('hạn nộp hồ sơ',f.txthannop.value)){ f.txthannop.focus();return false; }





//stemt.submit();
//stetc.submit();
return true;
}
</script>
<div style="position:absolute;top:4px;right:8px;cursor:pointer" onclick="JO_display2('JO_popup');JO_display2('JO_popupsub');location.reload(true);"><img src="JO_images/fileclose.ico" width="20px"/></div>
<div style="width:430px;">
<h2 style="width:100%;text-align:center;margin-top:24px">Edit Comment</h2>
<?php
$result=JO_comment_getpopup($key);
$result=$result->fetch_array();
?>
<form method="post" action="controller/SO_commentController.php">
<table width="80%" >
	<input 
						type	= "hidden" 
						id		= "SO_query"
						name	= "SO_query"
						value	= "comment_update"
	>
    <input 
						type	= "hidden" 
						id		= "SO_query"
						name	= "SO_chude"
						value	= "<?=$result['key']?>"
	>
    <input 
						type	= "hidden" 
						id		= "SO_id"
						name	= "SO_id"
						<?php
							if(!isset($_GET["SO_chude"]))
								echo "value	= \"".$_GET["SO_chude"]."\"";
							else
								echo "value	= \"0\"";
						?>
					>
      <tr>
    <th> account </th>
    <td><input type="text" name="account" style="width:384px;color:#000" class="input_text" value="<?=$result['account']?>" readonly="readonly"/></td>
  </tr>
      <tr>
    <th> Article </th>
    <td><input type="text" name="article"  style="width:384px;color:#000" class="input_text" value="<?=$result['title']?>" readonly="readonly"/>
</td>
  </tr>
      <tr>
    <th> Content </th>
    <td><textarea name="content" style="width:384px;color:#000" class="input_text"><?=$result['content']?>
</textarea></td>
  </tr>
      <tr>
      <td></td>
    <td ><input type="submit" value="Submit" style="width:388px;height:24px;color:#000"></td>
  </tr>
    </table>
</form>
</div>
</body>
</html>